package com.irdstudio.basic.sequence.service.impl.support.db;

import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface SequenceDao {
	
	public SAutoSeq querySAutoSeqBySeqId(String seqId);
	
	public String getSequenceSerno(String seqId);
	
	public String getBatchSequenceSerno(Map<String, Object> paramMap);
	
	/**
	 * 重置序列号
	 * @param sqlId
	 * @param resetFreq
	 * @param lastResetDate
	 * @return
	 */
	public int resetSeq(@Param("resetFreq") String resetFreq, @Param("openday") String openday, @Param("lastResetDate") String lastResetDate);
	
	/**
	 * 
	 * @return
	 */
	public int setLastResetDate(@Param("lastResetDate") String lastResetDate);

}
